home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-04-12 | 5.3 KB | 172 lines | [TEXT/R*ch] |
- /*
- File: Components.r
-
- Contains: QuickTime interfaces
-
- Version: Technology:
- Release: QuickTime 4.1
-
- Copyright: © 1990-1999 by Apple Computer, Inc., all rights reserved
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://developer.apple.com/bugreporter/
-
- */
-
- #ifndef __COMPONENTS_R__
- #define __COMPONENTS_R__
-
- #ifndef __CONDITIONALMACROS_R__
- #include "ConditionalMacros.r"
- #endif
-
- #define cmpIsMissing 0x20000000
- #define cmpWantsRegisterMessage 0x80000000
-
- #define componentDoAutoVersion 0x01
- #define componentWantsUnregister 0x02
- #define componentAutoVersionIncludeFlags 0x04
- #define componentHasMultiplePlatforms 0x08
- #define componentLoadResident 0x10
-
-
- /*----------------------------strn • Pascal-Style String--------------------------------*/
- // ••• used for component name resources
- type 'strn' {
- pstring; /* String */
- };
- /*----------------------------stri • Pascal-Style String--------------------------------*/
- // ••• used for component info resources
- type 'stri' {
- pstring; /* String */
- };
- /*----------------------------thng • Component Manager thing ------------------------*/
- /*
- thng_RezTemplateVersion:
- 0 - original 'thng' template <-- default
- 1 - extended 'thng' template
- 2 - extended 'thng' template including resource map id
- */
- #ifndef thng_RezTemplateVersion
- #ifdef UseExtendedThingResource /* grandfather in use of “UseExtendedThingResource” */
- #define thng_RezTemplateVersion 1
- #else
- #define thng_RezTemplateVersion 0
- #endif
- #endif
-
-
- type 'thng' {
- literal longint; /* Type */
- literal longint; /* Subtype */
- literal longint; /* Manufacturer */
- unsigned hex longint; /* component flags */
- unsigned hex longint kAnyComponentFlagsMask = 0; /* component flags Mask */
- literal longint; /* Code Type */
- integer; /* Code ID */
- literal longint; /* Name Type */
- integer; /* Name ID */
- literal longint; /* Info Type */
- integer; /* Info ID */
- literal longint; /* Icon Type */
- integer; /* Icon ID */
- #if thng_RezTemplateVersion >= 1
- unsigned hex longint; /* version of Component */
- longint; /* registration flags */
- integer; /* resource id of Icon Family */
- longint = $$CountOf(ComponentPlatformInfo);
- wide array ComponentPlatformInfo {
- unsigned hex longint; /* component flags */
- literal longint; /* Code Type */
- integer; /* Code ID */
- integer platform68k = 1, /* platform type (response from gestaltSysArchitecture) */
- platformPowerPC = 2,
- platformInterpreted = 3,
- platformWin32 = 4;
- };
- #if thng_RezTemplateVersion >= 2
- literal longint; /* resource map type */
- integer; /* resource map id */
- #endif
- #endif
- };
-
-
- /*----------------------------thga • Thing --------------------------------------------*/
- type 'thga' {
- literal longint; /* Type */
- literal longint; /* Subtype */
- literal longint; /* Manufacturer */
- unsigned hex longint; /* component flags */
- unsigned hex longint kAnyComponentFlagsMask = 0; /* component flags Mask */
- literal longint; /* Code Type */
- integer; /* Code ID */
- literal longint; /* Name Type */
- integer; /* Name ID */
- literal longint; /* Info Type */
- integer; /* Info ID */
- literal longint; /* Icon Type */
- integer; /* Icon ID */
-
- literal longint; /* Type */
- literal longint; /* Subtype */
- literal longint; /* Manufacturer */
- unsigned hex longint; /* component flags */
- unsigned hex longint kAnyComponentFlagsMask = 0; /* component flags Mask */
- #if thng_RezTemplateVersion >= 2
- literal longint; /* resource map type */
- integer; /* resource map id */
- integer cmpAliasNoFlags = 0, cmpAliasOnlyThisFile = 1; /* thing alias flags */
- #endif
- };
-
-
- /*----------------------------thn# • Component Manager thing load order dependency ----*/
- type 'thn#' {
- array {
- literal longint; /* Code Type */
- integer; /* Code ID */
- };
- };
- #if !TARGET_OS_MAC || TARGET_REZ_CARBON_CFM
- /*----------------------------dlle • dlle resource--------------------------------*/
- // used for multi-platform things
- type 'dlle' {
- cstring;
- };
- #endif
-
- /*-----------------------thnr • a Components public resource map ------------------*/
- type 'thnr' {
- array {
- literal longint; /* thing resource type */
- integer; /* thing resource id */
- integer; /* unused flags */
-
- literal longint; /* Mac resource type */
- integer; /* Mac resource id */
- integer cmpResourceNoFlags = 0, cmpResourceCallComponent = 1; /* flags*/
- };
- };
-
- type 'thar' as 'thnr';
-
-
- /*---------------------------- thnd • Component dependency (used for missings)------*/
- type 'thnd' {
- longint = $$CountOf(ComponentDependency);
- wide array ComponentDependency {
- literal longint; /* Type */
- literal longint; /* Subtype */
- literal longint; /* Manufacturer */
- unsigned hex longint; /* component flags */
- unsigned hex longint kAnyComponentFlagsMask = 0; /* component flags Mask */
- };
- };
-
-
- #endif /* __COMPONENTS_R__ */
-
-